"use strict";
var core = require("../utils/core");
var EleToolbar = require("../ele-toolbar");
var ProTableTools = require("./components/pro-table-tools");
var ProTableColumn = require("./components/pro-table-column");
var EleEmpty = require("../ele-empty");
var license = require("../utils/license");
var props = require("./props");
var util = require("./util");
function _interopDefaultLegacy(e) {
  return e && typeof e === "object" && "default" in e ? e : { "default": e };
}
var EleToolbar__default = /* @__PURE__ */ _interopDefaultLegacy(EleToolbar);
var ProTableTools__default = /* @__PURE__ */ _interopDefaultLegacy(ProTableTools);
var ProTableColumn__default = /* @__PURE__ */ _interopDefaultLegacy(ProTableColumn);
var EleEmpty__default = /* @__PURE__ */ _interopDefaultLegacy(EleEmpty);
var props__default = /* @__PURE__ */ _interopDefaultLegacy(props);
var render = function() {
  var _vm = this;
  var _h = _vm.$createElement;
  var _c = _vm._self._c || _h;
  return _vm.authenticated ? _c("div", { class: _vm.tableClass, style: _vm.tableStyle }, [_vm.toolbar ? _c("ele-toolbar", { class: _vm.toolClass, style: _vm.toolStyle, attrs: { "theme": _vm.toolsTheme, "title": _vm.title, "sub-title": _vm.subTitle } }, [_vm._t("toolbar"), _c("template", { slot: "action" }, [_c("pro-table-tools", { attrs: { "columns": _vm.columns, "size": _vm.tableSize, "tools": _vm.toolkit, "columns-sort": _vm.columnsSort, "fullscreen": _vm.tableFullscreen, "custom-style": _vm.toolkitStyle }, on: { "reload": _vm.onRefresh, "update:size": _vm.onSizeChange, "update:columns": _vm.onColumnsChange, "update:fullscreen": _vm.onFullscreenChange } }, [_vm._t("toolkit")], 2)], 1)], 2) : _vm._e(), _vm._t("default"), !_vm.destroyed ? _c("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: _vm.tableLoading, expression: "tableLoading" }], ref: "table", staticStyle: { "width": "100%" }, attrs: { "data": _vm.tableData, "height": _vm.tableHeight, "max-height": _vm.maxHeight, "stripe": _vm.stripe, "border": _vm.border, "size": _vm.tableSize, "fit": _vm.fit, "show-header": _vm.showHeader, "highlight-current-row": _vm.highlightCurrentRow, "current-row-key": _vm.currentRowKey, "row-class-name": _vm.rowClassName, "row-style": _vm.rowStyle, "cell-class-name": _vm.cellClassName, "cell-style": _vm.cellStyle, "header-row-class-name": _vm.headerRowClassName, "header-row-style": _vm.headerRowStyle, "header-cell-class-name": _vm.headerCellClassName, "header-cell-style": _vm.headerCellStyle, "row-key": _vm.rowKey, "default-expand-all": _vm.defaultExpandAll, "expand-row-keys": _vm.expandRowKeys, "default-sort": _vm.defaultSort, "tooltip-effect": _vm.tooltipEffect, "show-summary": _vm.showSummary, "sum-text": _vm.sumText, "summary-method": _vm.summaryMethod, "span-method": _vm.spanMethod, "select-on-indeterminate": _vm.selectOnIndeterminate, "indent": _vm.indent, "lazy": _vm.lazy, "load": _vm.tableLoad, "tree-props": _vm.treeProps }, on: { "select": _vm.onSelect, "select-all": _vm.onSelectAll, "selection-change": _vm.onSelectionChange, "cell-mouse-enter": _vm.onCellMouseEnter, "cell-mouse-leave": _vm.onCellMouseLeave, "cell-click": _vm.onCellClick, "cell-dblclick": _vm.onCellDblclick, "row-click": _vm.onRowClick, "row-contextmenu": _vm.onRowContextmenu, "row-dblclick": _vm.onRowDblclick, "header-click": _vm.onHeaderClick, "header-contextmenu": _vm.onHeaderContextmenu, "sort-change": _vm.onSortChange, "filter-change": _vm.onFilterChange, "current-change": _vm.onCurrentChange, "header-dragend": _vm.onHeaderDragend, "expand-change": _vm.onExpandChange } }, [_vm._l(_vm.tableCols, function(col) {
    return _c("pro-table-column", { key: col.id, attrs: { "col": col, "index": _vm.tableIndex }, scopedSlots: _vm._u([_vm._l(_vm.tableSlots, function(name) {
      return { key: name, fn: function(props2) {
        return [_vm._t(name, null, null, props2 || {})];
      } };
    })], null, true) });
  }), _c("template", { slot: "append" }, [_vm._t("append")], 2), _c("template", { slot: "empty" }, [_vm._t("empty", function() {
    return [_c("ele-empty", { attrs: { "text": _vm.errorText || _vm.emptyText } })];
  }, { "error": _vm.errorText, "text": _vm.emptyText })], 2)], 2) : _vm._e(), _vm.needPage ? _c("el-pagination", { staticClass: "ele-pagination-circle", style: _vm.paginationStyle, attrs: { "current-page": _vm.tablePage, "page-size": _vm.tableLimit, "total": _vm.tableTotal, "layout": _vm.layout, "page-sizes": _vm.pageSizes, "pager-count": _vm.pagerCount, "popper-class": _vm.popperClass, "prev-text": _vm.prevText, "next-text": _vm.nextText, "hide-on-single-page": _vm.hideOnSinglePage, "background": true }, on: { "current-change": _vm.onPageCurrentChange, "size-change": _vm.onPageSizeChange } }) : _vm._e()], 2) : _vm._e();
};
var staticRenderFns = [];
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
  if (render2) {
    options.render = render2;
    options.staticRenderFns = staticRenderFns2;
    options._compiled = true;
  }
  if (functionalTemplate) {
    options.functional = true;
  }
  if (scopeId) {
    options._scopeId = "data-v-" + scopeId;
  }
  var hook;
  if (moduleIdentifier) {
    hook = function(context) {
      context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
      if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
        context = __VUE_SSR_CONTEXT__;
      }
      if (injectStyles) {
        injectStyles.call(this, context);
      }
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier);
      }
    };
    options._ssrRegister = hook;
  } else if (injectStyles) {
    hook = shadowMode ? function() {
      injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
    } : injectStyles;
  }
  if (hook) {
    if (options.functional) {
      options._injectStyles = hook;
      var originalRender = options.render;
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context);
        return originalRender(h, context);
      };
    } else {
      var existing = options.beforeCreate;
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
    }
  }
  return {
    exports: scriptExports,
    options
  };
}
const __vue2_script = {
  name: "EleProTable",
  components: {
    EleToolbar: EleToolbar__default["default"],
    ProTableTools: ProTableTools__default["default"],
    ProTableColumn: ProTableColumn__default["default"],
    EleEmpty: EleEmpty__default["default"]
  },
  props: props__default["default"],
  emits: [
    "done",
    "update:selection",
    "update:current",
    "columns-change",
    "size-change",
    "fullscreen-change",
    "refresh",
    "select",
    "select-all",
    "selection-change",
    "cell-mouse-enter",
    "cell-mouse-leave",
    "cell-click",
    "cell-dblclick",
    "row-click",
    "row-contextmenu",
    "row-dblclick",
    "header-click",
    "header-contextmenu",
    "sort-change",
    "filter-change",
    "current-change",
    "header-dragend",
    "expand-change"
  ],
  data() {
    return {
      authenticated: license.checkLicense(),
      tableData: [],
      tablePage: this.currentPage,
      tableLimit: this.pageSize,
      tableTotal: 0,
      tableLoading: this.loading,
      tableCols: [],
      tableSize: this.size,
      tableFullscreen: false,
      errorText: "",
      tableSorter: void 0,
      tableFilters: void 0,
      tableWhere: {},
      destroyed: false
    };
  },
  computed: {
    tableIndex() {
      var _a, _b;
      return (((_a = this.tablePage) != null ? _a : 1) - 1) * ((_b = this.tableLimit) != null ? _b : 0) + 1;
    },
    tableClass() {
      return [
        "ele-bg-white",
        "ele-pro-table",
        { "ele-pro-table-fullscreen": this.tableFullscreen }
      ];
    },
    tableStyle() {
      return { zIndex: this.fullZIndex };
    },
    tableSlots() {
      return Object.keys(this.$scopedSlots).filter((key) => !["toolbar", "toolkit", "default", "append", "empty"].includes(key));
    },
    tableHeight() {
      if (this.tableFullscreen && this.fullHeight) {
        return this.fullHeight;
      }
      return this.height;
    }
  },
  mounted() {
    if (this.initLoad) {
      this.reload({ where: this.where });
    }
  },
  methods: {
    reload(option, parent, resolve) {
      var _a, _b, _c;
      if (option) {
        if (option.page) {
          this.tablePage = option.page;
        }
        if (option.limit) {
          this.tableLimit = option.limit;
        }
        if (option.where) {
          this.tableWhere = option.where;
        }
        if (option.sorter || option.orders) {
          this.tableSorter = option.sorter || option.orders;
        }
        if (option.filters) {
          this.tableFilters = option.filters;
        }
      }
      this.errorText = "";
      if (Array.isArray(this.datasource)) {
        this.tableLoading = true;
        const { page, data, total } = util.reloadData(this.datasource, (_a = this.tableSorter) != null ? _a : this.getDefaultSorter(), this.tablePage, this.tableLimit, this.needPage);
        this.tablePage = page;
        this.tableData = data;
        this.tableTotal = total;
        this.tableLoading = false;
        const result = { data, total, response: this.datasource };
        this.$emit("done", result, page, total);
        return;
      }
      if (typeof this.datasource === "function") {
        if (!parent) {
          this.tableLoading = true;
        }
        const req = this.datasource({
          page: this.tablePage,
          limit: this.tableLimit,
          where: Object.assign({}, this.tableWhere),
          order: this.getRequestOrders(),
          filterValue: this.getRequestFilters(),
          sorter: (_b = this.tableSorter) != null ? _b : this.getDefaultSorter(),
          filters: (_c = this.tableFilters) != null ? _c : this.getDefaultFilters(),
          parent
        }, this.datasourceCallback);
        Promise.resolve(req).then((result) => {
          if (typeof result !== "undefined") {
            const { data, count } = this.getResponseResult(result);
            this.datasourceCallback(data, count, parent, resolve, result);
          }
        }).catch((e) => {
          this.datasourceCallback(e == null ? void 0 : e.message);
          if (resolve) {
            console.error(e);
          }
        });
        return;
      }
      if (typeof this.datasource === "string") {
        const params = Object.assign({}, this.tableWhere, this.getRequestFilters(), this.getRequestOrders(), this.getRequestPage());
        if (this.lazy) {
          if (parent) {
            const name = this.parentIdField || this.rowKey;
            params[this.parentIdName] = util.getFieldValue(parent, name);
          } else {
            params[this.parentIdName] = this.defaultParentId;
          }
        }
        if (!resolve || !parent) {
          this.tableLoading = true;
        }
        if (this.parseParam) {
          Promise.resolve(this.parseParam(params)).then((p) => {
            this.fetchData(p || {}, parent, resolve);
          }).catch((e) => {
            var _a2;
            this.tableLoading = false;
            this.errorText = (_a2 = e == null ? void 0 : e.message) != null ? _a2 : "parseParam\u8FD4\u56DE\u6570\u636E\u9519\u8BEF";
          });
        } else {
          this.fetchData(params, parent, resolve);
        }
      }
    },
    datasourceCallback(data, total, parent, resolve, response) {
      if (Array.isArray(data)) {
        if (resolve) {
          resolve(data);
        } else {
          if (this.autoAmendPage && this.needPage && !data.length && total && this.tablePage && this.tableLimit) {
            const maxPage = Math.ceil(total / this.tableLimit);
            if (maxPage && this.tablePage > maxPage) {
              this.tablePage = maxPage;
              this.reload();
              return;
            }
          }
          this.tableData = data;
          this.tableTotal = total || data.length;
        }
        this.tableLoading = false;
        const result = {
          data: this.tableData,
          total: this.tableTotal,
          response
        };
        this.$emit("done", result, this.tablePage, this.tableTotal, parent);
      } else if (typeof data === "string") {
        this.tableLoading = false;
        this.errorText = data;
      } else {
        this.tableLoading = false;
        this.errorText = "\u83B7\u53D6\u6570\u636E\u5931\u8D25";
        console.error("datasource\u8FD4\u56DE\u7684\u6570\u636E\u9519\u8BEF: ", data);
      }
    },
    fetchData(params, parent, resolve) {
      var _a, _b, _c, _d;
      const httpRequest = (_a = this.$http) == null ? void 0 : _a.request;
      if (typeof httpRequest !== "function") {
        this.errorText = "this.$http.request is not defined";
        this.tableLoading = false;
        return;
      }
      const method = ((_b = this.method) == null ? void 0 : _b.toUpperCase()) || "GET";
      const headers = Object.assign({ "content-type": this.contentType }, this.headers);
      const option = { method, headers, url: this.datasource };
      if (["POST", "PUT", "PATCH"].includes(method)) {
        if ((_d = (_c = this.contentType) == null ? void 0 : _c.toLowerCase()) == null ? void 0 : _d.includes("form")) {
          const data = new FormData();
          Object.keys(params).forEach((key) => {
            data.append(key, params[key]);
          });
          option.data = data;
        } else {
          option.data = params;
        }
      } else {
        option.params = params;
      }
      httpRequest(option).then((res) => {
        this.tableLoading = false;
        const result = res.data;
        const { msg, data, count, success, successCode } = this.getResponseResult(result);
        if (success) {
          if (resolve) {
            resolve(data);
          } else {
            if (this.autoAmendPage && this.needPage && !(data == null ? void 0 : data.length) && count && this.tablePage && this.tableLimit) {
              const maxPage = Math.ceil(count / this.tableLimit);
              if (maxPage && this.tablePage > maxPage) {
                this.tablePage = maxPage;
                this.reload();
                return;
              }
            }
            this.tableData = data;
            this.tableTotal = count || data.length;
          }
          this.$emit("done", result, this.tablePage, this.tableTotal, parent);
        } else {
          const error = `\u83B7\u53D6\u6570\u636E\u5931\u8D25, \u6B63\u786E\u7684\u72B6\u6001\u7801\u4E3A: ${successCode}`;
          this.errorText = msg || error;
        }
      }).catch((e) => {
        this.tableLoading = false;
        this.errorText = e == null ? void 0 : e.message;
      });
    },
    getRequestPage() {
      var _a;
      const param = {};
      if (this.needPage) {
        const { pageName, limitName } = Object.assign({}, util.DEFAULT_REQUEST, (_a = this.getGlobalRequest()) != null ? _a : {}, this.request);
        param[pageName] = this.tablePage;
        param[limitName] = this.tableLimit;
      }
      return param;
    },
    getRequestOrders() {
      var _a, _b, _c, _d, _e, _f;
      const orders = {};
      const { sortName, orderName } = Object.assign({}, util.DEFAULT_REQUEST, (_a = this.getGlobalRequest()) != null ? _a : {}, this.request);
      if (!sortName || !orderName) {
        return orders;
      }
      const ascValue = (_c = (_b = this.ascendValue) != null ? _b : this.getGlobalAscendValue()) != null ? _c : util.DEFAULT_ASCEND_VALUE;
      const descValue = (_e = (_d = this.descendValue) != null ? _d : this.getGlobalDescendValue()) != null ? _e : util.DEFAULT_DESCEND_VALUE;
      const items = util.getOrderItems((_f = this.tableSorter) != null ? _f : this.getDefaultSorter());
      if (items.length === 1) {
        orders[sortName] = items[0].field;
        orders[orderName] = items[0].descend ? descValue : ascValue;
      } else if (items.length) {
        orders[sortName] = items.map((d) => [d.field, d.descend ? descValue : ascValue].join(" ")).join(",");
      }
      return orders;
    },
    getRequestFilters() {
      var _a;
      const filters = {};
      const filterValue = (_a = this.tableFilters) != null ? _a : this.getDefaultFilters();
      Object.keys(filterValue).forEach((key) => {
        const value = filterValue[key];
        if (typeof value === "undefined" || value === null) {
          return;
        }
        if (typeof value === "string") {
          if (value) {
            filters[key] = value;
          }
        } else if (Array.isArray(value)) {
          if (value.length) {
            filters[key] = value == null ? void 0 : value.join(",");
          }
        } else {
          filters[key] = value;
        }
      });
      return filters;
    },
    getResponseResult(data) {
      var _a;
      const result = this.parseData ? this.parseData(data) : data;
      if (!result || Array.isArray(result)) {
        return {
          code: 0,
          msg: "",
          data: this.getResponseData(result),
          success: true,
          successCode: 0
        };
      }
      const { dataName, countName, statusCode, statusName, msgName } = Object.assign({}, util.DEFAULT_RESPONSE, (_a = this.getGlobalResponse()) != null ? _a : {}, this.response);
      if (!dataName) {
        return {};
      }
      const code = util.getFieldValue(result, statusName);
      return {
        data: this.getResponseData(util.getFieldValue(result, dataName)),
        count: countName ? util.getFieldValue(result, countName) : 0,
        msg: util.getFieldValue(result, msgName),
        success: statusCode === code,
        successCode: statusCode,
        code
      };
    },
    getResponseData(data) {
      var _a, _b;
      if (!data || !this.lazy) {
        return data;
      }
      const name = (_b = (_a = this.treeProps) == null ? void 0 : _a.hasChildren) != null ? _b : "hasChildren";
      return data.map((d) => {
        var _a2;
        const temp = Object.assign({}, d);
        temp[name] = (_a2 = temp[name]) != null ? _a2 : true;
        return temp;
      });
    },
    getGlobalRequest() {
      var _a;
      return (_a = this.$ELEADMIN) == null ? void 0 : _a.request;
    },
    getGlobalResponse() {
      var _a;
      return (_a = this.$ELEADMIN) == null ? void 0 : _a.response;
    },
    getGlobalAscendValue() {
      var _a;
      return (_a = this.$ELEADMIN) == null ? void 0 : _a.ascendValue;
    },
    getGlobalDescendValue() {
      var _a;
      return (_a = this.$ELEADMIN) == null ? void 0 : _a.descendValue;
    },
    getDefaultSorter() {
      return this.defaultSort;
    },
    getDefaultFilters() {
      const filters = {};
      core.eachTreeData(this.columns, (d) => {
        if (typeof d.columnKey === "string" && d.columnKey.length && d.filteredValue) {
          filters[d.columnKey] = d.filteredValue;
        }
      });
      return filters;
    },
    getData() {
      return this.tableData;
    },
    tableLoad(row, treeNode, resolve) {
      if (this.load) {
        this.load(row, treeNode, resolve);
      } else {
        this.reload(void 0, row, resolve);
      }
    },
    onRefresh() {
      if (Array.isArray(this.datasource)) {
        this.$emit("refresh");
      } else {
        this.reload();
      }
    },
    onSizeChange(value) {
      this.tableSize = value;
      this.$emit("size-change", value);
    },
    onColumnsChange(columns) {
      this.tableCols = columns;
      this.$emit("columns-change", columns);
    },
    onFullscreenChange(value) {
      this.tableFullscreen = value;
      this.$emit("fullscreen-change", value);
    },
    onPageSizeChange(limit) {
      this.tableLimit = limit;
      this.reload();
    },
    onPageCurrentChange(page) {
      this.tablePage = page;
      this.reload();
    },
    onSelect(selection, row) {
      this.$emit("select", selection, row);
    },
    onSelectAll(selection) {
      this.$emit("select-all", selection);
    },
    onSelectionChange(selection) {
      this.$emit("update:selection", selection);
      this.$emit("selection-change", selection);
    },
    onCellMouseEnter(row, column, cell, event) {
      this.$emit("cell-mouse-enter", row, column, cell, event);
    },
    onCellMouseLeave(row, column, cell, event) {
      this.$emit("cell-mouse-leave", row, column, cell, event);
    },
    onCellClick(row, column, cell, event) {
      this.$emit("cell-click", row, column, cell, event);
    },
    onCellDblclick(row, column, cell, event) {
      this.$emit("cell-dblclick", row, column, cell, event);
    },
    onRowClick(row, column, event) {
      if (this.rowClickChecked && this.selection) {
        if (this.rowClickCheckedIntelligent && (this.selection.length === 0 || this.selection.length === 1)) {
          this.clearSelection();
          this.toggleRowSelection(row, true);
        } else {
          this.toggleRowSelection(row);
        }
      }
      this.$emit("row-click", row, column, event);
    },
    onRowContextmenu(row, column, event) {
      this.$emit("row-contextmenu", row, column, event);
    },
    onRowDblclick(row, column, event) {
      this.$emit("row-dblclick", row, column, event);
    },
    onHeaderClick(column, event) {
      this.$emit("header-click", column, event);
    },
    onHeaderContextmenu(column, event) {
      this.$emit("header-contextmenu", column, event);
    },
    onSortChange({ column, prop, order }) {
      if (this.$listeners["sort-change"]) {
        this.$emit("sort-change", { column, prop, order });
      } else {
        this.tableSorter = { prop, order, column };
        this.reload();
      }
    },
    onFilterChange(filters) {
      if (this.$listeners["filter-change"]) {
        this.$emit("filter-change", filters);
      } else {
        this.tableFilters = filters;
        this.reload();
      }
    },
    onCurrentChange(currentRow, oldCurrentRow) {
      this.$emit("update:current", currentRow);
      this.$emit("current-change", currentRow, oldCurrentRow);
    },
    onHeaderDragend(newWidth, oldWidth, column, event) {
      this.$emit("header-dragend", newWidth, oldWidth, column, event);
    },
    onExpandChange(row, expanded) {
      this.$emit("expand-change", row, expanded);
    },
    clearSelection() {
      this.$refs.table.clearSelection();
    },
    toggleRowSelection(row, selected) {
      this.$refs.table.toggleRowSelection(row, selected);
    },
    toggleAllSelection() {
      this.$refs.table.toggleAllSelection();
    },
    toggleRowExpansion(row, expanded) {
      this.$refs.table.toggleRowExpansion(row, expanded);
    },
    setCurrentRow(row) {
      this.$refs.table.setCurrentRow(row);
    },
    clearSort() {
      this.$refs.table.clearSort();
    },
    clearFilter(columnKey) {
      this.$refs.table.clearFilter(columnKey);
    },
    doLayout() {
      this.$refs.table.doLayout();
    },
    sort(prop, order) {
      this.$refs.table.sort(prop, order);
    },
    toggleRowExpansionAll(expanded) {
      this.tableData.forEach((d) => {
        this.toggleRowExpansion(d, expanded);
      });
    },
    setSelectedRows(rows) {
      this.clearSelection();
      rows.forEach((d) => {
        this.toggleRowSelection(d, true);
      });
    },
    setSelectedRowKeys(values) {
      if (this.rowKey) {
        const rows = this.tableData.filter((d) => values.some((v) => v === util.getFieldValue(d, this.rowKey)));
        this.setSelectedRows(rows);
      }
    },
    reRenderTable() {
      this.destroyed = true;
      this.$nextTick(() => {
        this.destroyed = false;
        this.$nextTick(() => {
          this.setSelectedRows(this.selection);
        });
      });
    },
    doRequest(callback) {
      var _a, _b;
      callback({
        page: this.tablePage,
        limit: this.tableLimit,
        where: Object.assign({}, this.tableWhere),
        order: this.getRequestOrders(),
        filterValue: this.getRequestFilters(),
        sorter: (_a = this.tableSorter) != null ? _a : this.getDefaultSorter(),
        filters: (_b = this.tableFilters) != null ? _b : this.getDefaultFilters()
      });
    }
  },
  watch: {
    datasource: {
      handler() {
        this.reload();
      },
      deep: true
    },
    loading(loading) {
      this.tableLoading = loading;
    },
    size(size) {
      this.tableSize = size;
    },
    columns: {
      handler(columns) {
        if (columns) {
          this.tableCols = util.getInitColumns(columns);
        } else if (this.tableCols.length) {
          this.tableCols = [];
        }
      },
      immediate: true,
      deep: true
    },
    where(where) {
      this.tableWhere = Object.assign({}, where);
    }
  }
};
const __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
function __vue2_injectStyles(context) {
  for (let o in __cssModules) {
    this[o] = __cssModules[o];
  }
}
var index = /* @__PURE__ */ function() {
  return __component__.exports;
}();
module.exports = index;
